<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("title","修改密码");
	request.setAttribute("modelConfigPath", "user");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>

<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="updatePwd" action="/admin/user/manager/updatePwd" method="post" cssClass="form-horizontal">
			<t:formgroup>
				<label class="col-sm-2">当前用户</label>
				<span class="col-sm-10">${sessionScope.session_account_info.loginName}</span>
			</t:formgroup>
			<t:formgroup>
				<t:label path="oldPwd" cssClass="col-xs-2" />
				<t:input type="password" path="oldPwd" colClass="col-xs-10" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="newPwd" cssClass="col-xs-2" />
				<t:input type="password" path="newPwd" colClass="col-xs-10" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="confirmPwd" cssClass="col-xs-2" />
				<t:input type="password" path="confirmPwd" colClass="col-xs-10" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>
<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
	
	function actionResultCallBack(){
		var baseOperate={close:true,refresh:false}
		top.location.reload();
		return baseOperate;
	}
</script>



<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
